package com.sztx.pay.center.core.service.util;

public enum SettleTradeType {
	
	TRADE(1, "交易"),
	
	CHARGE(2, "充值"),
	
	WITHDRAW_BERBON_ALIPAY(3, "倍棒余额提现至支付宝"),
	WITHDRAW_BERBON_BANKCARD(4, "倍棒余额提现至银行卡"),
	WITHDRAW_PROFIT_ALIPAY(5, "返利金提现至支付宝"),
	WITHDRAW_PROFIT_BANKCARD(6, "返利金提现至银行卡"),
	
	WITHDRAW_SCAN_PROFIT_ALIPAY(12, "扫码付返利金提现至支付宝"),
	WITHDRAW_SCAN_PROFIT_BANKCARD(13, "扫码付返利金提现至银行卡"),
	
	TRANSFER_BERBON_BANKCARD(7, "倍棒余额转账至银行卡"),
	TRANSFER_BERBON_BERBON(8, "倍棒余额转账至倍棒余额"),
	TRANSFER_BANKCARD_BANKCARD(9, "银行卡转账至银行卡"),
	TRANSFER_BANKCARD_BERBON(10, "银行卡转账至倍棒余额"),
	TRANSFER_PROFIT_BERBON(11, "佣金转账至倍棒余额");
	
	

	private int value;
	
	private String name;
	public static SettleTradeType valueOf(int value){
		switch (value) {
		case 1:			
			return TRADE;
		case 2:
			return CHARGE;
		case 3:			
			return WITHDRAW_BERBON_ALIPAY;
		case 4:
			return WITHDRAW_BERBON_BANKCARD;
		case 5:			
			return WITHDRAW_PROFIT_ALIPAY;
		case 6:
			return WITHDRAW_PROFIT_BANKCARD;
		case 7:			
			return TRANSFER_BERBON_BANKCARD;
		case 8:
			return TRANSFER_BERBON_BERBON;
		case 9:			
			return TRANSFER_BANKCARD_BANKCARD;
		case 10:
			return TRANSFER_BANKCARD_BERBON;
		case 11:
			return TRANSFER_PROFIT_BERBON;
		default:
			return null;
		}		
	}
	private SettleTradeType(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
